package subumbo.micro.controller
{
	import flash.events.Event;

	public class ApplicationEvent extends Event
	{
		
		static public const MODEL_CACHED:String = "model_cached";
		static public const BIND:String = "bind_components";
		static public const CONTROL:String = "front_control";
		static public const UPDATE:String = "update_components";
		static public const SUBVIEW:String = "subview";
		
		private var _data:Object;
		public function ApplicationEvent(type:String, data:Object=null)
		{
			super(type,true);
			_data = data;
		}
		
		override public function clone():Event
		{
			return new ApplicationEvent(type, _data);
		}
		
		public function get data():Object
		{
			return _data;
		}
	}
}